package com.roy.DubboRPCDemo.bean;

import java.io.Serializable;

public class UserBean implements Serializable{
	private static final long serialVersionUID = 1L;
	// 如果字段未初始化，RPC调用时会抛出空指针异常。
	private int userId = -1;
	private String userName = "";
	private String userPassword = "";
	private String userInfo = "";

	public int getUserId() {
		return userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getUserPassword() {
		return userPassword;
	}

	public void setUserPassword(String userPassword) {
		this.userPassword = userPassword;
	}

	public String getUserInfo() {
		return userInfo;
	}

	public void setUserInfo(String userInfo) {
		this.userInfo = userInfo;
	}

	public String toString() {
		return "[usreId = " + userId + ";userName=" + userName + "; userPassword=" + userPassword + ";userInfo = "
				+ userInfo + "]";
	}

}
